Thumb

HTML Headings Tag

1/29/2020 6:04:51 AM

HTML heading tag is representing the content title on the web page. This tag is representing the ‘h’. the ‘h’ tag is general tag which is start and end tag. This h tag is h1 to h6 tag. H1 is more then big and h6 is small. We can use many attributes into the heading tag. Now given bellow the heading tag example code and explain the code:

<!DOCTYPE html>
<html>
      <head>
      	<title>This is HTML</title>
      </head>
      <body>
      <!--HTML heading tag-->
      <h1 style="color: green">Farhan Sakib Jesy</h1>
      <h2 style="color: red">Farhan Sakib Jesy</h2>
      <h3 style="color: yellow">Farhan Sakib Jesy</h3>
      <h4 style="color: black">Farhan Sakib Jesy</h4>
      <h5 style="color: #FF7733">Farhan Sakib Jesy</h5>
      <h6 style="color: #FF3380">Farhan Sakib Jesy</h3>
      </body>
</html>

In this code we use heading tag and also use style attribute which is change our text color and show the output on the browser.